package magicloan.auctionpocket.adapter;

import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import magicloan.auctionpocket.R;
import magicloan.auctionpocket.bean.ProduceBean;
import magicloan.auctionpocket.view.circul.CircularImage;

/**
 * Created by hechao on 2018/1/31.
 */
public class FourthFgAdapter extends BaseQuickAdapter<ProduceBean, BaseViewHolder> {

    public FourthFgAdapter(@LayoutRes int layoutResId, @Nullable List<ProduceBean> data) {
        super(layoutResId, data);
    }

    public FourthFgAdapter(@Nullable List<ProduceBean> data) {
        super(data);
    }

    public FourthFgAdapter(@LayoutRes int layoutResId) {
        super(layoutResId);
    }

    public FourthFgAdapter(int layoutResId, Context activity) {
        super(layoutResId);
    }

    private TextView mLastTv ;
    @Override
    protected void convert(BaseViewHolder helper, ProduceBean item, int position) {
        CircularImage img = helper.getView(R.id.img);
        Glide.with(mContext)
                .load("")
                .placeholder(R.mipmap.test)
                .crossFade()
                .into(img);
    }

}
